package com.yxinsur.imc.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yxinsur.imc.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
public class OrderSelfHoldVo {

    private Long id;

    @Excel(name ="保单号")
    @ApiModelProperty("保单号")
    private String policyCode;


    @Excel(name ="机构名称")
    @ApiModelProperty("机构名称")
    private String orgName;


    @Excel(name ="代理人姓名")
    @ApiModelProperty("代理人姓名")
    private String brokerName;


    @Excel(name ="投保人姓名")
    @ApiModelProperty("投保人姓名")
    private String applicantName;


    @Excel(name ="被保人姓名")
    @ApiModelProperty("被保人姓名")
    private String insurantName;


    @Excel(name ="直辖团队")
    @ApiModelProperty("直辖团队")
    private String teamName;


    @Excel(name ="供应商")
    @ApiModelProperty("供应商")
    private String supplierName;


    @Excel(name ="产品名称")
    @ApiModelProperty("产品名称")
    private String riskName;


    @Excel(name ="缴费期数")
    @ApiModelProperty("缴费期数")
    private String payNum;

    @Excel(name ="是否为自保件",readConverterExp = "Y=是,N=否")
    @ApiModelProperty("自保件标识")
    private String isSelf;


    @Excel(name ="首年保费")
    @ApiModelProperty("首年保费")
    private BigDecimal firstPrem;


    @Excel(name ="标准保费")
    @ApiModelProperty("标准保费")
    private BigDecimal standPrem;


    @Excel(name ="保单状态",dictType = "risk_status_code")
    @ApiModelProperty("保单状态")
    private String orderStatusCode;


    @Excel(name ="投保日期",dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("投保日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date applyDate;


    @Excel(name ="承保日期",dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("承保日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date insureDate;


    @Excel(name ="回执日期",dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("回执日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ackDate;
}
